package fictional.Common;

/**
 * Represents an Occupation item
 */
public class OccupationItem extends DBItem implements Comparable<OccupationItem>{

	/**
	 * Returns a new Occupation object
	 * @param id The id
	 * @param mid The mid
	 */
	public OccupationItem(int id, String mid) {
		super(id, mid);
	}
	
	public OccupationItem(int id, String mid,String name) {
		super(id, mid);
		this.occupation = name;
	}

	public void setOccupation(String occupation) {
		this.occupation = occupation;
	}
	public String getOccupation() {
		return occupation;
	}

	public int compareTo(OccupationItem s) {
		if (s.occupation.equals(this.occupation))
			return 0;
		else
			return (s.occupation.compareTo(this.occupation));
	}
	private String occupation;
}
